package com.gitee.qdbp.general.common.biz.site.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.common.api.site.basic.IContentPublishBasic;
import com.gitee.qdbp.general.common.api.site.model.content.ContentPublishBean;
import com.gitee.qdbp.general.common.api.site.model.content.ContentPublishWhere;
import com.gitee.qdbp.general.common.api.site.service.IContentPublishQueryer;

/**
 * 内容发布业务处理类
 *
 * @author zhh
 * @version 171012
 */
@Service
@Transactional(readOnly = true)
public class ContentPublishQueryer implements IContentPublishQueryer {

    /** 内容发布DAO **/
    @Autowired
    private IContentPublishBasic contentPublishBasic;

    @Override
    public ContentPublishBean find(String id) throws ServiceException {
        return contentPublishBasic.findById(id);
    }

    @Override
    public ContentPublishBean find(ContentPublishWhere where) throws ServiceException {
        return contentPublishBasic.find(where);
    }

    @Override
    public PageList<ContentPublishBean> list(ContentPublishWhere where, OrderPaging paging) throws ServiceException {
        return contentPublishBasic.list(where, paging);
    }

}